package cool.tsy.emos.wx.config.mq;

import com.rabbitmq.client.ConnectionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hongxuan.wang
 * @date Created in 2021/12/27 10:00
 * @description rabbitmq配置类
 * @mail 1443424326@qq.com
 */
@Configuration
public class RabbitMQConfig {

    @Bean
    public ConnectionFactory getFactory() {
        ConnectionFactory factory = new ConnectionFactory();
        factory.setHost("175.24.177.204");
        factory.setPort(5672);
        return factory;
    }
}
